home *** CD-ROM | disk | FTP | other *** search
- package sun.tools.zip;
-
- public class ZipEntry implements ZipConstants {
- private String path;
- private boolean dir;
- long length;
- long mtime;
- long locpos;
-
- ZipEntry(String var1) {
- if (var1.endsWith("/")) {
- var1 = var1.substring(0, var1.length() - 1);
- this.dir = true;
- }
-
- this.path = var1;
- }
-
- public String getPath() {
- return this.path;
- }
-
- public String getName() {
- int var1 = this.path.lastIndexOf(47);
- return var1 < 0 ? this.path : this.path.substring(var1 + 1);
- }
-
- public boolean isDirectory() {
- return this.dir;
- }
-
- public long length() {
- return this.length;
- }
-
- public long lastModified() {
- return this.mtime;
- }
- }
-